package is.bean.employee;

import is.bean.NamedEntity;

/**
 *
 * @author aspr0
 */
public class Employee implements NamedEntity
{
    private Integer id;
    private String lastName;
    private String firstName;
    private String middleName;
    private Integer departmentId;

    public Integer getId()
    {
        return id;
    }

    public String getName()
    {
        return lastName + " " + firstName + " " + middleName;
    }

    public Integer getDepartmentId()
    {
        return departmentId;
    }

    public void setDepartmentId(Integer departmentId)
    {
        this.departmentId = departmentId;
    }

    public String getFirstName()
    {
        return firstName;
    }

    public void setFirstName(String firstName)
    {
        this.firstName = firstName;
    }

    public String getLastName()
    {
        return lastName;
    }

    public void setLastName(String lastName)
    {
        this.lastName = lastName;
    }

    public String getMiddleName()
    {
        return middleName;
    }

    public void setMiddleName(String middleName)
    {
        this.middleName = middleName;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }
}
